from pygame import Vector2


def get_direction(vec_a: Vector2, vec_b: Vector2) -> Vector2:
    '''
        获取向量b到向量a的方向        
        :params  
         vec_a: 向量a  
         vec_b: 向量b  
        :return: 方向(标准化)
    '''
    (vec_a_x, vec_a_y) = vec_a
    (vec_b_x, vec_b_y) = vec_b
    return Vector2(vec_a_x - vec_b_x, vec_a_y - vec_b_y).normalize()